package com.xfxplus.m.Module;


import android.app.Activity;

import com.xfxplus.m.dataBean.Userbean;
import com.xfxplus.m.presenter.TestA1;

import java.util.ArrayList;
import java.util.List;

import dagger.Module;
import dagger.Provides;

@Module
public class MainModule {
    TestA1.Tint tint;
    List<Userbean> stringList;
    Activity activity;
    public MainModule(TestA1.Tint tint,Activity activity){
        this.stringList=new ArrayList<>();
        this.activity=activity;
        this.tint=tint;
    }
    @Provides
    public TestA1.Tint getTint(){
        return tint;
    }

    @Provides
    public List<Userbean> getStringList(){
        for (int i=0;i<10;i++){
            stringList.add(new Userbean(i+"aaa","bbb"));
        }
        return stringList;
    }

    @Provides
    public Activity getActivity() {
        return activity;
    }
}
